package com.ruoyi.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户管理对象 user_t
 * 
 * @author ruoyi
 * @date 2024-10-17
 */
@Data
public class UserT extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private String id;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String nick;

    /** 头像链接 */
    private String avatarUrl;

    /** 手机号码1 */
    @Excel(name = "手机号码1")
    private String mobile;

    /** 手机号码2 */
    @Excel(name = "手机号码2")
    private String mobile2;

    /** 工号 */
    @Excel(name = "工号")
    private String empId;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 手机号对应的国家号 */
    private String stateCode;

    /** 积分 */
    @Excel(name = "积分")
    private Long credit;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setNick(String nick) 
    {
        this.nick = nick;
    }

    public String getNick() 
    {
        return nick;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setMobile2(String mobile2) 
    {
        this.mobile2 = mobile2;
    }

    public String getMobile2() 
    {
        return mobile2;
    }
    public void setEmpId(String empId)
    {
        this.empId = empId;
    }

    public String getEmpId()
    {
        return empId;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setStateCode(String stateCode) 
    {
        this.stateCode = stateCode;
    }

    public String getStateCode() 
    {
        return stateCode;
    }
    public void setCredit(Long credit) 
    {
        this.credit = credit;
    }

    public Long getCredit() 
    {
        return credit;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nick", getNick())
            .append("avatarUrl", getAvatarUrl())
            .append("mobile", getMobile())
            .append("mobile2", getMobile2())
            .append("empId", getEmpId())
            .append("email", getEmail())
            .append("stateCode", getStateCode())
            .append("credit", getCredit())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
